Extract Data Using ChatGPT Multiple
AutomatR.ChatGPT.Activities.ExtractDataUsingChatGPTMultiple
The "Extract Data Using ChatGPT Multiple" activity in AutomatR is part of the ChatGPT activities package, designed to extract data from multiple images simultaneously using the OpenAI GPT model. This activity sends a series of POST requests to the OpenAI API, providing a list of image URLs along with user instructions, and outputs the extracted data in JSON format.
Properties
Name | Description |
---|---|
Input | |
ApiKey | Allows you to enter the API token (or API key) used for authentication and authorization with the OpenAI API services. This token enables you to make API requests and interact with the OpenAI models. String variables containing the API key. |
Image URLs | Full paths to the image files. List variables containing the paths to the image files. |
Fields | Enter the desired fields to be used to extract data from the provided image files. String variables containing the desired fields for data extraction. |
Misc | |
Display Name | This property allows you to customize the display name of the activity within the workflow. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Extract Data Using ChatGPT Multiple" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the extracted data in JSON format. Variables of type JObject to store the extracted data. |
How to use:
- Drag and drop the "Extract Data Using ChatGPT Multiple" activity onto the workflow.
- Configure the properties by specifying the API key, delay, list of image URLs, and desired fields for data extraction.
- Execute the workflow to extract data from the provided images using the OpenAI GPT model.
Example: Consider an example where the "Extract Data Using ChatGPT Multiple" activity is used to extract information from multiple images:
Extract Data Using ChatGPT Multiple:
Image URLs:
- "C:\Images\image1.jpg"
- "C:\Images\image2.jpg"
- "C:\Images\image3.jpg"
ApiKey: "your_api_key_here"
Fields: "name, date, amount"
Delay: 5
Result: extractedData
In this example, the activity extracts data from the images located at "C:\Images\image1.jpg," "C:\Images\image2.jpg," and "C:\Images\image3.jpg" using the OpenAI GPT model. The API key is specified for authentication, and the desired fields for data extraction include "name," "date," and "amount." The extracted data is stored in the extractedData
variable for further use in the workflow.